package com.grad.why.studentsystem.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.grad.why.studentsystem.domain.Admin;
import com.grad.why.studentsystem.mapper.AdminMapper;
import com.grad.why.studentsystem.service.AdminService;
import com.grad.why.studentsystem.service.CameraService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
@Service(interfaceClass = AdminService.class)
@Transactional
public class AdminServiceImpl implements AdminService{
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin getAdminByBindId(int bindid) {
        try{
            return adminMapper.selectByPrimaryKey(bindid);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
